﻿using WeifenLuo.WinFormsUI.Docking;
using System;
using System.Drawing;
using System.Windows.Forms;
using GameControls;

namespace GameDesigner2
{
    public partial class GameForm : DockContent
    {
        public GameForm()
        {
            InitializeComponent();
        }
        
        void GameFormActivated(object sender, EventArgs e)
        {
            ActiveGame.GameDisplayer = _BoardControl1.GameDisplayer;
        }
        
        void GameFormDeactivate(object sender, EventArgs e)
        {
            ActiveGame.GameDisplayer = null;
        }
        
        protected override void Dispose(bool disposing)
        {
            if (disposing) {
                if (components != null) {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }
        
    }
}
